import unittest
from page import Page
import time
class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.pg=Page
    def tearDown(self):
        self.pg.find_tuichu()
    def test_something(self):
        time.sleep(10)
        self.pg.wode().click()
        self.pg.zhanghao().send_keys('13834098671')
        self.pg.mima().send_keys('123456Aa')
        self.pg.ys().click()
        self.pg.lijidl().click()
        # 断言
        yq='待付款'
        sj=self.pg.sj().text
        self.assertEqual(yq,sj)


if __name__ == '__main__':
    unittest.main()
